#!/bin/sh
cd `dirname $0`
REPOFILE=`basename salt-*.repo`
sed -e 's|baseurl=.*|baseurl=file://'"`pwd`"'|' $REPOFILE | sed -e 's|gpgkey=.*|gpgkey=file://'"`pwd`"'/repodata/repomd.xml.key|' > /etc/yum.repos.d/$REPOFILE
cd -
echo -e "执行如下命令开始安装salt服务器:\n\t yum -y install salt-master\n执行如下命令开始安装salt客户端:\n\t yum -y install salt-minion\n"
